<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: option.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('option_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">option.h</div></div>
</div><!--header-->
<div class="contents">
<a href="option_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * option.h -- helpers for handling options in CoAP PDUs</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2013 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#ifndef COAP_OPTION_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#define COAP_OPTION_H_</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &quot;<a class="code" href="bits_8h.html">bits.h</a>&quot;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &quot;<a class="code" href="pdu_8h.html">pdu.h</a>&quot;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">   25</a></span><span class="keyword">typedef</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="option_8h.html#a4d26009eb308f3867747b0aa713a1755">   26</a></span><span class="preprocessor">#define PCHAR(p) ((coap_opt_t *)(p))</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structcoap__option__t.html">   31</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structcoap__option__t.html#a8c6a106a9200c0241f14fcfa22a64176">   32</a></span>  uint16_t <a class="code hl_variable" href="structcoap__option__t.html#a8c6a106a9200c0241f14fcfa22a64176">delta</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structcoap__option__t.html#af0e531c8722b480d4ca317b1679a954f">   33</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__option__t.html#af0e531c8722b480d4ca317b1679a954f">length</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structcoap__option__t.html#a2358e06e4a5b548cf7f67b398ed24322">   34</a></span>  <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_variable" href="structcoap__option__t.html#a2358e06e4a5b548cf7f67b398ed24322">value</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>} <a class="code hl_struct" href="structcoap__option__t.html">coap_option_t</a>;</div>
</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="option_8h.html#a11de99f50cc9f5a34fd9e4d121ecfd13">coap_opt_parse</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt,</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>                      <span class="keywordtype">size_t</span> length,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>                      <a class="code hl_struct" href="structcoap__option__t.html">coap_option_t</a> *result);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="option_8h.html#a683c0121b4028a90f612809437aaa3d0">coap_opt_size</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga7bb991b46f70311754e632738d33266b">   76</a></span><span class="preprocessor">#define COAP_OPT_FILTER_SHORT 6</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="group__opt__filter.html#gab098c0305af7c474b5cd79e4204cfb40">   84</a></span><span class="preprocessor">#define COAP_OPT_FILTER_LONG  2</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="comment">/* Ensure that COAP_OPT_FILTER_SHORT and COAP_OPT_FILTER_LONG are set</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="comment"> * correctly. */</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">#if (COAP_OPT_FILTER_SHORT + COAP_OPT_FILTER_LONG &gt; 16)</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#error COAP_OPT_FILTER_SHORT + COAP_OPT_FILTER_LONG must be less or equal 16</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span><span class="preprocessor">#endif </span><span class="comment">/* (COAP_OPT_FILTER_SHORT + COAP_OPT_FILTER_LONG &gt; 16) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="foldopen" id="foldopen00093" data-start="" data-end="">
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga5616439246b1037a0f0b95be017a2c8f">   93</a></span><span class="preprocessor">#define COAP_OPT_FILTER_SIZE                                        \</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="preprocessor">  (((COAP_OPT_FILTER_SHORT + 1) &gt;&gt; 1) + COAP_OPT_FILTER_LONG) +1</span></div>
</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">  119</a></span><span class="keyword">typedef</span> uint16_t <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a>[<a class="code hl_define" href="group__opt__filter.html#ga5616439246b1037a0f0b95be017a2c8f">COAP_OPT_FILTER_SIZE</a>];</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga81f470e9cdcc258799e10f6ed8a3ce5e">  122</a></span><span class="preprocessor">#define COAP_OPT_ALL NULL</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00130" data-start="{" data-end="}">
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga883885e793388359ef93d195bdbb4c2c">  130</a></span><a class="code hl_function" href="group__opt__filter.html#ga883885e793388359ef93d195bdbb4c2c">coap_option_filter_clear</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> f) {</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>  memset(f, 0, <span class="keyword">sizeof</span>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a>));</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>}</div>
</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__opt__filter.html#ga0170aecd699295f02affd5b280244088">coap_option_filter_set</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__opt__filter.html#ga61706c7da445795c096cb21194b57bb3">coap_option_filter_unset</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type);</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__opt__filter.html#ga3d3a4336ff55e111eae4eb2a1883a98b">coap_option_filter_get</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type);</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00183" data-start="{" data-end="}">
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga6b9ade4855f4440b3311296c03bc12aa">  183</a></span><a class="code hl_function" href="group__opt__filter.html#ga6b9ade4855f4440b3311296c03bc12aa">coap_option_setb</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type) {</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>  <span class="keywordflow">return</span> <a class="code hl_function" href="group__opt__filter.html#ga0170aecd699295f02affd5b280244088">coap_option_filter_set</a>(filter, type) ? 1 : -1;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>}</div>
</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00200" data-start="{" data-end="}">
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="group__opt__filter.html#gae505a1c44aa1f5aa01531deaff245e5b">  200</a></span><a class="code hl_function" href="group__opt__filter.html#gae505a1c44aa1f5aa01531deaff245e5b">coap_option_clrb</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type) {</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>  <span class="keywordflow">return</span> <a class="code hl_function" href="group__opt__filter.html#ga61706c7da445795c096cb21194b57bb3">coap_option_filter_unset</a>(filter, type) ? 1 : -1;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>}</div>
</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00217" data-start="{" data-end="}">
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="group__opt__filter.html#ga6c7511c51433cf52068a92a18e62e2d3">  217</a></span><a class="code hl_function" href="group__opt__filter.html#ga6c7511c51433cf52068a92a18e62e2d3">coap_option_getb</a>(<a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter, uint16_t type) {</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>  <span class="keywordflow">return</span> <a class="code hl_function" href="group__opt__filter.html#ga3d3a4336ff55e111eae4eb2a1883a98b">coap_option_filter_get</a>(filter, type);</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>}</div>
</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span> </div>
<div class="foldopen" id="foldopen00237" data-start="{" data-end="};">
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html">  237</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a4f8dcbdb5373cb073b95f8c91a72cb0c">  238</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__opt__iterator__t.html#a4f8dcbdb5373cb073b95f8c91a72cb0c">length</a>;                </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a0df30f4a2bb85deb3d493fded6967b9d">  239</a></span>  uint16_t <a class="code hl_variable" href="structcoap__opt__iterator__t.html#a0df30f4a2bb85deb3d493fded6967b9d">type</a>;                </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a48cbd8005c37ff481fe7d10cfc1f4bb6">  240</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__opt__iterator__t.html#a48cbd8005c37ff481fe7d10cfc1f4bb6">bad</a>:1;           </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a6fed563dd49b61f28a275cd2f8c6f6a8">  241</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__opt__iterator__t.html#a6fed563dd49b61f28a275cd2f8c6f6a8">filtered</a>:1;      </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a05da7c127d28e7ba39d7186169596f6a">  242</a></span>  <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *<a class="code hl_variable" href="structcoap__opt__iterator__t.html#a05da7c127d28e7ba39d7186169596f6a">next_option</a>;      </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"><a class="line" href="structcoap__opt__iterator__t.html#a40a864c48b367abcaed1afa30621f405">  243</a></span>  <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> <a class="code hl_variable" href="structcoap__opt__iterator__t.html#a40a864c48b367abcaed1afa30621f405">filter</a>;     </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>} <a class="code hl_struct" href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a>;</div>
</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span><a class="code hl_struct" href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a> *<a class="code hl_function" href="group__opt__filter.html#gaa76930050882387b0f5c7d0246e14440">coap_option_iterator_init</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu,</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>                                               <a class="code hl_struct" href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a> *oi,</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>                                               <span class="keyword">const</span> <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> filter);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span><a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *<a class="code hl_function" href="group__opt__filter.html#ga19d4dbbc03ef362996964fbfdd1d4c7b">coap_option_next</a>(<a class="code hl_struct" href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a> *oi);</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span> </div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span><a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *<a class="code hl_function" href="group__opt__filter.html#ga35c348f1ce988e6788930a710f4535c9">coap_check_option</a>(<a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu,</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span>                              uint16_t type,</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span>                              <a class="code hl_struct" href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a> *oi);</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span> </div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="group__opt__filter.html#gafebbd04a7895df694a9345dad0275aeb">coap_opt_setheader</a>(<a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt,</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>                          <span class="keywordtype">size_t</span> maxlen,</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>                          uint16_t delta,</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>                          <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span> </div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="group__opt__filter.html#ga55f19454026048e906139d575feddecb">coap_opt_encode_size</a>(uint16_t delta, <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="group__opt__filter.html#ga358cb455deaefca1b1234298f018c9ab">coap_opt_encode</a>(<a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt,</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span>                       <span class="keywordtype">size_t</span> n,</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span>                       uint16_t delta,</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span>                       <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *val,</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>                       <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span> </div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>uint16_t <a class="code hl_function" href="group__opt__filter.html#gae6aced1ef1014a692f68b3a13c7d6b70">coap_opt_delta</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt);</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span> </div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>uint16_t <a class="code hl_function" href="group__opt__filter.html#gaac65919c93f7047b687d33af9672b3ea">coap_opt_length</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt);</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span> </div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span><span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_function" href="group__opt__filter.html#gaec4e944d39722779cac610ed22ee09db">coap_opt_value</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *opt);</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span> </div>
<div class="foldopen" id="foldopen00408" data-start="{" data-end="};">
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="structcoap__optlist__t.html">  408</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> {</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"><a class="line" href="structcoap__optlist__t.html#a96f83935e6d948a1993eee7e5f2fb529">  409</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> *<a class="code hl_variable" href="structcoap__optlist__t.html#a96f83935e6d948a1993eee7e5f2fb529">next</a>;  </div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"><a class="line" href="structcoap__optlist__t.html#a1e0e2a73913a4888f690c6fa43815698">  410</a></span>  uint16_t <a class="code hl_variable" href="structcoap__optlist__t.html#a1e0e2a73913a4888f690c6fa43815698">number</a>;              </div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"><a class="line" href="structcoap__optlist__t.html#a24a8480763cc064bdd31ab4252dce9e2">  411</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__optlist__t.html#a24a8480763cc064bdd31ab4252dce9e2">length</a>;                </div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"><a class="line" href="structcoap__optlist__t.html#a47aa4fd0063b0d91f2b1892cfe0b6175">  412</a></span>  <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_variable" href="structcoap__optlist__t.html#a47aa4fd0063b0d91f2b1892cfe0b6175">data</a>;                </div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"><a class="line" href="option_8h.html#ab17551be465defb70f9ade7527a8bf54">  413</a></span>} <a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a>;</div>
</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span> </div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span><a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> *<a class="code hl_function" href="option_8h.html#a21df6c3988187909d52a3218eb2f12ef">coap_new_optlist</a>(uint16_t <a class="code hl_variable" href="structcoap__optlist__t.html#a1e0e2a73913a4888f690c6fa43815698">number</a>,</div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>                                 <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__optlist__t.html#a24a8480763cc064bdd31ab4252dce9e2">length</a>,</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>                                 <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_variable" href="structcoap__optlist__t.html#a47aa4fd0063b0d91f2b1892cfe0b6175">data</a>);</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span> </div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span><span class="keywordtype">int</span> <a class="code hl_function" href="option_8h.html#aac21dee6a4689d2000017e4b95564a2a">coap_add_optlist_pdu</a>(<a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu, <a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a>** optlist_chain);</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span> </div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span><span class="keywordtype">int</span> <a class="code hl_function" href="option_8h.html#ad867c028a9dc7b4be543223cc685c57c">coap_insert_optlist</a>(<a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> **optlist_chain,</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>                        <a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> *optlist);</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span> </div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span><span class="keywordtype">void</span> <a class="code hl_function" href="option_8h.html#a476a30348f07ce45d0e1a3be0d1a1c21">coap_delete_optlist</a>(<a class="code hl_struct" href="structcoap__optlist__t.html">coap_optlist_t</a> *optlist_chain);</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span> </div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_OPTION_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="abits_8h_html"><div class="ttname"><a href="bits_8h.html">bits.h</a></div><div class="ttdoc">Bit vector manipulation.</div></div>
<div class="ttc" id="agroup__opt__filter_html_ga001c5b06ae9e02996509516871cb69a8"><div class="ttname"><a href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a></div><div class="ttdeci">uint16_t coap_opt_filter_t[COAP_OPT_FILTER_SIZE]</div><div class="ttdoc">Fixed-size vector we use for option filtering.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00119">option.h:119</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga0170aecd699295f02affd5b280244088"><div class="ttname"><a href="group__opt__filter.html#ga0170aecd699295f02affd5b280244088">coap_option_filter_set</a></div><div class="ttdeci">int coap_option_filter_set(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Sets the corresponding entry for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00534">option.c:534</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga19d4dbbc03ef362996964fbfdd1d4c7b"><div class="ttname"><a href="group__opt__filter.html#ga19d4dbbc03ef362996964fbfdd1d4c7b">coap_option_next</a></div><div class="ttdeci">coap_opt_t * coap_option_next(coap_opt_iterator_t *oi)</div><div class="ttdoc">Updates the iterator oi to point to the next option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00157">option.c:157</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga358cb455deaefca1b1234298f018c9ab"><div class="ttname"><a href="group__opt__filter.html#ga358cb455deaefca1b1234298f018c9ab">coap_opt_encode</a></div><div class="ttdeci">size_t coap_opt_encode(coap_opt_t *opt, size_t n, uint16_t delta, const uint8_t *val, size_t length)</div><div class="ttdoc">Encodes option with given delta into opt.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00409">option.c:409</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga35c348f1ce988e6788930a710f4535c9"><div class="ttname"><a href="group__opt__filter.html#ga35c348f1ce988e6788930a710f4535c9">coap_check_option</a></div><div class="ttdeci">coap_opt_t * coap_check_option(coap_pdu_t *pdu, uint16_t type, coap_opt_iterator_t *oi)</div><div class="ttdoc">Retrieves the first option of type type from pdu.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00207">option.c:207</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga3d3a4336ff55e111eae4eb2a1883a98b"><div class="ttname"><a href="group__opt__filter.html#ga3d3a4336ff55e111eae4eb2a1883a98b">coap_option_filter_get</a></div><div class="ttdeci">int coap_option_filter_get(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Checks if type is contained in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00544">option.c:544</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga55f19454026048e906139d575feddecb"><div class="ttname"><a href="group__opt__filter.html#ga55f19454026048e906139d575feddecb">coap_opt_encode_size</a></div><div class="ttdeci">size_t coap_opt_encode_size(uint16_t delta, size_t length)</div><div class="ttdoc">Compute storage bytes needed for an option with given delta and length.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00388">option.c:388</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga5616439246b1037a0f0b95be017a2c8f"><div class="ttname"><a href="group__opt__filter.html#ga5616439246b1037a0f0b95be017a2c8f">COAP_OPT_FILTER_SIZE</a></div><div class="ttdeci">#define COAP_OPT_FILTER_SIZE</div><div class="ttdoc">The number of elements in coap_opt_filter_t.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00093">option.h:93</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga61706c7da445795c096cb21194b57bb3"><div class="ttname"><a href="group__opt__filter.html#ga61706c7da445795c096cb21194b57bb3">coap_option_filter_unset</a></div><div class="ttdeci">int coap_option_filter_unset(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Clears the corresponding entry for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00539">option.c:539</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga6b9ade4855f4440b3311296c03bc12aa"><div class="ttname"><a href="group__opt__filter.html#ga6b9ade4855f4440b3311296c03bc12aa">coap_option_setb</a></div><div class="ttdeci">COAP_STATIC_INLINE int coap_option_setb(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Sets the corresponding bit for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00183">option.h:183</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga6c7511c51433cf52068a92a18e62e2d3"><div class="ttname"><a href="group__opt__filter.html#ga6c7511c51433cf52068a92a18e62e2d3">coap_option_getb</a></div><div class="ttdeci">COAP_STATIC_INLINE int coap_option_getb(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Gets the corresponding bit for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00217">option.h:217</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga883885e793388359ef93d195bdbb4c2c"><div class="ttname"><a href="group__opt__filter.html#ga883885e793388359ef93d195bdbb4c2c">coap_option_filter_clear</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_option_filter_clear(coap_opt_filter_t f)</div><div class="ttdoc">Clears filter f.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00130">option.h:130</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gaa76930050882387b0f5c7d0246e14440"><div class="ttname"><a href="group__opt__filter.html#gaa76930050882387b0f5c7d0246e14440">coap_option_iterator_init</a></div><div class="ttdeci">coap_opt_iterator_t * coap_option_iterator_init(const coap_pdu_t *pdu, coap_opt_iterator_t *oi, const coap_opt_filter_t filter)</div><div class="ttdoc">Initializes the given option iterator oi to point to the beginning of the pdu's option list.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00121">option.c:121</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gaac65919c93f7047b687d33af9672b3ea"><div class="ttname"><a href="group__opt__filter.html#gaac65919c93f7047b687d33af9672b3ea">coap_opt_length</a></div><div class="ttdeci">uint16_t coap_opt_length(const coap_opt_t *opt)</div><div class="ttdoc">Returns the length of the given option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00249">option.c:249</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gae505a1c44aa1f5aa01531deaff245e5b"><div class="ttname"><a href="group__opt__filter.html#gae505a1c44aa1f5aa01531deaff245e5b">coap_option_clrb</a></div><div class="ttdeci">COAP_STATIC_INLINE int coap_option_clrb(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Clears the corresponding bit for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00200">option.h:200</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gae6aced1ef1014a692f68b3a13c7d6b70"><div class="ttname"><a href="group__opt__filter.html#gae6aced1ef1014a692f68b3a13c7d6b70">coap_opt_delta</a></div><div class="ttdeci">uint16_t coap_opt_delta(const coap_opt_t *opt)</div><div class="ttdoc">Decodes the delta value of the next option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00220">option.c:220</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gaec4e944d39722779cac610ed22ee09db"><div class="ttname"><a href="group__opt__filter.html#gaec4e944d39722779cac610ed22ee09db">coap_opt_value</a></div><div class="ttdeci">const uint8_t * coap_opt_value(const coap_opt_t *opt)</div><div class="ttdoc">Returns a pointer to the value of the given option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00286">option.c:286</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gafebbd04a7895df694a9345dad0275aeb"><div class="ttname"><a href="group__opt__filter.html#gafebbd04a7895df694a9345dad0275aeb">coap_opt_setheader</a></div><div class="ttdeci">size_t coap_opt_setheader(coap_opt_t *opt, size_t maxlen, uint16_t delta, size_t length)</div><div class="ttdoc">Encodes the given delta and length values into opt.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00329">option.c:329</a></div></div>
<div class="ttc" id="alibcoap_8h_html_a58b4446dccd0b8c21b3532ef6b77a57d"><div class="ttname"><a href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a></div><div class="ttdeci">#define COAP_STATIC_INLINE</div><div class="ttdef"><b>Definition</b> <a href="libcoap_8h_source.html#l00038">libcoap.h:38</a></div></div>
<div class="ttc" id="aoption_8h_html_a11de99f50cc9f5a34fd9e4d121ecfd13"><div class="ttname"><a href="option_8h.html#a11de99f50cc9f5a34fd9e4d121ecfd13">coap_opt_parse</a></div><div class="ttdeci">size_t coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result)</div><div class="ttdoc">Parses the option pointed to by opt into result.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00046">option.c:46</a></div></div>
<div class="ttc" id="aoption_8h_html_a21df6c3988187909d52a3218eb2f12ef"><div class="ttname"><a href="option_8h.html#a21df6c3988187909d52a3218eb2f12ef">coap_new_optlist</a></div><div class="ttdeci">coap_optlist_t * coap_new_optlist(uint16_t number, size_t length, const uint8_t *data)</div><div class="ttdoc">Create a new optlist entry.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00551">option.c:551</a></div></div>
<div class="ttc" id="aoption_8h_html_a476a30348f07ce45d0e1a3be0d1a1c21"><div class="ttname"><a href="option_8h.html#a476a30348f07ce45d0e1a3be0d1a1c21">coap_delete_optlist</a></div><div class="ttdeci">void coap_delete_optlist(coap_optlist_t *optlist_chain)</div><div class="ttdoc">Removes all entries from the optlist_chain, freeing off their memory usage.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00621">option.c:621</a></div></div>
<div class="ttc" id="aoption_8h_html_a683c0121b4028a90f612809437aaa3d0"><div class="ttname"><a href="option_8h.html#a683c0121b4028a90f612809437aaa3d0">coap_opt_size</a></div><div class="ttdeci">size_t coap_opt_size(const coap_opt_t *opt)</div><div class="ttdoc">Returns the size of the given option, taking into account a possible option jump.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00321">option.c:321</a></div></div>
<div class="ttc" id="aoption_8h_html_a963ad4994625360a5ac70d9df2ab5412"><div class="ttname"><a href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a></div><div class="ttdeci">uint8_t coap_opt_t</div><div class="ttdoc">Use byte-oriented access methods here because sliding a complex struct coap_opt_t over the data buffe...</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00025">option.h:25</a></div></div>
<div class="ttc" id="aoption_8h_html_aac21dee6a4689d2000017e4b95564a2a"><div class="ttname"><a href="option_8h.html#aac21dee6a4689d2000017e4b95564a2a">coap_add_optlist_pdu</a></div><div class="ttdeci">int coap_add_optlist_pdu(coap_pdu_t *pdu, coap_optlist_t **optlist_chain)</div><div class="ttdoc">The current optlist of optlist_chain is first sorted (as per RFC7272 ordering requirements) and then ...</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00584">option.c:584</a></div></div>
<div class="ttc" id="aoption_8h_html_ad867c028a9dc7b4be543223cc685c57c"><div class="ttname"><a href="option_8h.html#ad867c028a9dc7b4be543223cc685c57c">coap_insert_optlist</a></div><div class="ttdeci">int coap_insert_optlist(coap_optlist_t **optlist_chain, coap_optlist_t *optlist)</div><div class="ttdoc">Adds optlist to the given optlist_chain.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00600">option.c:600</a></div></div>
<div class="ttc" id="apdu_8h_html"><div class="ttname"><a href="pdu_8h.html">pdu.h</a></div><div class="ttdoc">Pre-defined constants that reflect defaults for CoAP.</div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html"><div class="ttname"><a href="structcoap__opt__iterator__t.html">coap_opt_iterator_t</a></div><div class="ttdoc">Iterator to run through PDU options.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00237">option.h:237</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a05da7c127d28e7ba39d7186169596f6a"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a05da7c127d28e7ba39d7186169596f6a">coap_opt_iterator_t::next_option</a></div><div class="ttdeci">coap_opt_t * next_option</div><div class="ttdoc">pointer to the unparsed next option</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00242">option.h:242</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a0df30f4a2bb85deb3d493fded6967b9d"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a0df30f4a2bb85deb3d493fded6967b9d">coap_opt_iterator_t::type</a></div><div class="ttdeci">uint16_t type</div><div class="ttdoc">decoded option type</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00239">option.h:239</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a40a864c48b367abcaed1afa30621f405"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a40a864c48b367abcaed1afa30621f405">coap_opt_iterator_t::filter</a></div><div class="ttdeci">coap_opt_filter_t filter</div><div class="ttdoc">option filter</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00243">option.h:243</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a48cbd8005c37ff481fe7d10cfc1f4bb6"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a48cbd8005c37ff481fe7d10cfc1f4bb6">coap_opt_iterator_t::bad</a></div><div class="ttdeci">unsigned int bad</div><div class="ttdoc">iterator object is ok if not set</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00240">option.h:240</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a4f8dcbdb5373cb073b95f8c91a72cb0c"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a4f8dcbdb5373cb073b95f8c91a72cb0c">coap_opt_iterator_t::length</a></div><div class="ttdeci">size_t length</div><div class="ttdoc">remaining length of PDU</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00238">option.h:238</a></div></div>
<div class="ttc" id="astructcoap__opt__iterator__t_html_a6fed563dd49b61f28a275cd2f8c6f6a8"><div class="ttname"><a href="structcoap__opt__iterator__t.html#a6fed563dd49b61f28a275cd2f8c6f6a8">coap_opt_iterator_t::filtered</a></div><div class="ttdeci">unsigned int filtered</div><div class="ttdoc">denotes whether or not filter is used</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00241">option.h:241</a></div></div>
<div class="ttc" id="astructcoap__option__t_html"><div class="ttname"><a href="structcoap__option__t.html">coap_option_t</a></div><div class="ttdoc">Representation of CoAP options.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00031">option.h:31</a></div></div>
<div class="ttc" id="astructcoap__option__t_html_a2358e06e4a5b548cf7f67b398ed24322"><div class="ttname"><a href="structcoap__option__t.html#a2358e06e4a5b548cf7f67b398ed24322">coap_option_t::value</a></div><div class="ttdeci">const uint8_t * value</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00034">option.h:34</a></div></div>
<div class="ttc" id="astructcoap__option__t_html_a8c6a106a9200c0241f14fcfa22a64176"><div class="ttname"><a href="structcoap__option__t.html#a8c6a106a9200c0241f14fcfa22a64176">coap_option_t::delta</a></div><div class="ttdeci">uint16_t delta</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00032">option.h:32</a></div></div>
<div class="ttc" id="astructcoap__option__t_html_af0e531c8722b480d4ca317b1679a954f"><div class="ttname"><a href="structcoap__option__t.html#af0e531c8722b480d4ca317b1679a954f">coap_option_t::length</a></div><div class="ttdeci">size_t length</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00033">option.h:33</a></div></div>
<div class="ttc" id="astructcoap__optlist__t_html"><div class="ttname"><a href="structcoap__optlist__t.html">coap_optlist_t</a></div><div class="ttdoc">Representation of chained list of CoAP options to install.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00408">option.h:408</a></div></div>
<div class="ttc" id="astructcoap__optlist__t_html_a1e0e2a73913a4888f690c6fa43815698"><div class="ttname"><a href="structcoap__optlist__t.html#a1e0e2a73913a4888f690c6fa43815698">coap_optlist_t::number</a></div><div class="ttdeci">uint16_t number</div><div class="ttdoc">the option number (no delta coding)</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00410">option.h:410</a></div></div>
<div class="ttc" id="astructcoap__optlist__t_html_a24a8480763cc064bdd31ab4252dce9e2"><div class="ttname"><a href="structcoap__optlist__t.html#a24a8480763cc064bdd31ab4252dce9e2">coap_optlist_t::length</a></div><div class="ttdeci">size_t length</div><div class="ttdoc">the option value length</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00411">option.h:411</a></div></div>
<div class="ttc" id="astructcoap__optlist__t_html_a47aa4fd0063b0d91f2b1892cfe0b6175"><div class="ttname"><a href="structcoap__optlist__t.html#a47aa4fd0063b0d91f2b1892cfe0b6175">coap_optlist_t::data</a></div><div class="ttdeci">uint8_t * data</div><div class="ttdoc">the option data</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00412">option.h:412</a></div></div>
<div class="ttc" id="astructcoap__optlist__t_html_a96f83935e6d948a1993eee7e5f2fb529"><div class="ttname"><a href="structcoap__optlist__t.html#a96f83935e6d948a1993eee7e5f2fb529">coap_optlist_t::next</a></div><div class="ttdeci">struct coap_optlist_t * next</div><div class="ttdoc">next entry in the optlist chain</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00409">option.h:409</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
<div class="ttc" id="authash_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition</b> <a href="uthash_8h_source.html#l00079">uthash.h:79</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="option_8h.html">option.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
